<include file="Public:top" />
<script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
<!--头部 end-->
 <include file="Public:menu" /> 
 <!--菜单 end-->


    <form  id='crewForm' >

         

             
             <div class="form-group">
                    <div class="label"><label for="title">版本号（数字）</label></div>
                    <div class="field">
                       <input type="text" class="input"  name="baben" size="20" value="{$result['baben']}"  style="width:20%;" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label"><label for="title">最新地址</label></div>
                    <div class="field">
                        <input type="text" class="input" name="rj_add" value="{$result['rj_add']}"  size="50"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label"><label for="title">公告信息</label></div>
                    <div class="field">
                        <textarea class="input" name="cont" rows="5" cols="50">{$result.cont}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label"><label for="title">code</label></div>
                    <div class="field">
                        <input type="number" class="input"  name="code" size="20" value="{$result.code}" style="width:20%;" />
                    </div>
                    <p>0:停止更新；1:成功</p>
                </div>
                <div class="form-group">
                    <div class="label"><label for="title">时间</label></div>
                    <div class="field">
                        <input type="text" class="input"  name="add_time" size="20" value="{$result.add_time}"  style="width:20%;" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label"><label for="title">备注</label></div>
                    <div class="field">
                        <textarea class="input" name="syimg" rows="5" cols="50" >{$result.syimg}</textarea>
                    </div>
                </div>
            <input type="hidden" name="id" value="{$id}">
            <div class="form-button" align="center"><button class="button bg-main" id="sure" type="submit">提交</button></div>
     </form>


 <include file="Public:box" /> 
 <!--底部 end-->
<script>


    //异步表单提交
        $('#sure').click(function(){

            $.post('/console/Syimg/doCardUpdate',$('form').serialize(),function(data){

                if ( data.status )
                {
                    layer.alert(data.info, 1);

                    //刷新当前页
                    location.href = "";
                }
                else
                {

                    layer.alert(data.info);

                }

            },'json');

            return false;

        })


</script>


